home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
FOR-7.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-02-07
|
406b
|
20 lines
' FOR-7.BAS
' This program demonstrates nested FOR loops.
CLS
PRINT "The inner loop will print the colored numbers:"
PRINT
FOR i% = 1 TO 15
COLOR 7 ' set outer loop color to white
PRINT ' print a blank line
PRINT "Outer loop lap number"; i%
FOR j% = 1 TO 15
COLOR j%
PRINT j%;
SOUND (j% * 300), 1
NEXT j%
NEXT i%